var t = require;
var e = module;
var o = exports;
var n =
    (this && this.__decorate) ||
    function (t, e, o, n) {
        var r,
            a = arguments.length,
            i = a < 3 ? e : null === n ? (n = Object.getOwnPropertyDescriptor(e, o)) : n;
        if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) i = Reflect.decorate(t, e, o, n);
        else
            for (var s = t.length - 1; s >= 0; s--)
                (r = t[s]) && (i = (a < 3 ? r(i) : a > 3 ? r(e, o, i) : r(e, o)) || i);
        return a > 3 && i && Object.defineProperty(e, o, i), i;
    };
Object.defineProperty(o, "__esModule", {value: !0});
var r = t("ConfS"),
    a = t("Platforms"),
    i = cc._decorator,
    s = i.ccclass,
    c =
        (i.property,
        (function () {
            function t() {}
            return (
                (t.prototype.init = function (t) {
                    (this.container = t),
                        (this.strs = r.DatasManager.gameHints.replace(/^\s*|\s*$/g, "").split(/\s*\n\s*/)),
                        this.restart();
                }),
                (t.prototype.restart = function () {
                    (this.strIndex = -1), a.default.disorder(this.strs), this.next();
                }),
                (t.prototype.next = function () {
                    var t = this;
                    ++this.strIndex >= this.strs.length
                        ? this.restart()
                        : (this.container.stopAllActions(),
                          (this.container.opacity = 0),
                          a.default.setLabels(this.container, this.strs[this.strIndex]),
                          this.container.runAction(
                              cc.sequence(
                                  cc.fadeIn(0.5),
                                  cc.delayTime(5),
                                  cc.fadeOut(0.5),
                                  cc.callFunc(function () {
                                      t.next();
                                  })
                              )
                          ));
                }),
                (t.prototype.clear = function () {
                    this.container.stopAllActions();
                }),
                (t = n([s], t))
            );
        })());
o.default = c;
